import React, { Component } from 'react';

class Footer extends Component {
    constructor(props) {
        console.log(props)
        super(props)
    }


    state = {
        name: ''
    }

    componentWillReceiveProps(newProps) {
        console.log(newProps, '最新的props')

        console.log(this.props, 'this.props')
    }

    render(){
        const { name } = this.props;
        return <div className='footer'>{name}</div>
    }
}

export default Footer


// state